package com.dingyh.shopwebbackground.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer   code;        //响应状态码
    private String    msg ;    //响应信息
    private T         data ;       //操作的某类的信息

    public CommonResult(Integer code , String msg)  {
        this(code, msg ,null) ;
    }

    public CommonResult(Integer code) {
        this.code = code;
    }

}